package com.example.voicealarm;

import android.app.AlarmManager;
import android.content.Context;

public class AlarmUtils {
    public static boolean canScheduleExactAlarms(Context context) {
        AlarmManager alarmManager = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);
        return alarmManager != null && 
               (android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.S || 
                alarmManager.canScheduleExactAlarms());
    }
}
